package javapop.utils;

public class Triple<F, S, T> {
	private final F first;
	private final S second;
	private final T third;
	
	public Triple(F first, S second, T third) {
		this.first = first;
		this.second = second;
		this.third = third;
	}
	
	public F getFirst() {
		return first;
	}
	
	public S getSecond() {
		return second;
	}
	
	public T getThird() {
		return third;
	}
	
	@Override
	public String toString() {
		StringBuilder buf = new StringBuilder();
		buf.append("(");
		buf.append(first);
		buf.append(",");
		buf.append(second);
		buf.append(",");
		buf.append(third);
		buf.append(")");
		return buf.toString();
	}
	
}
